package com.abou.aop.exception;

import org.aspectj.lang.JoinPoint;
import org.springframework.core.Ordered;

/**
 * The interface of the aspect enabling to translate exceptions from the
 * connector layer to the business layer.
 * 
 * @author ztrt8431
 */
public interface IExceptionTranslatorAspect extends Ordered {
  
  /**
   * Executed when an exception has been caught in the method of a manager : it
   * translates a lower level exception into a business level one.
   * 
   * @param jp The join point.
   * @param ex The exception thrown.
   */
  void translateException(JoinPoint jp, Exception ex);
}
